package com.suning.sawp.po.promotion;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 异业促销活动记录
 * @author 14062606
 *
 */
@Document(collection = "HorizProActivity")
public class HorizProActivity implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2330490895164804085L;

	@Id
	private String id;
	
	/**
	 * 活动名称
	 */
	private String activityName;
	
	/**
	 * 促销中心活动编码
	 */
	private String proActivityId;
	
	/**
	 * 促销中心活动名称
	 */
	private String proActivityName;
	
	/**
     * 活动密钥
     */
    private String activitySecretKey;
	
	/**
	 * 创建人
	 */
	private String creator;
	
	/**
	 * 创建时间
	 */
	private Date createTime;
	
	/**
	 * 更新人
	 */
	private String updator;
	
	/**
	 * 更新时间
	 */
	private String updateTime;
	
	/**
	 * 开始日期
	 */
	private Date startTime;
	
	/**
	 * 结束日期
	 */
	private Date endTime;
	
	/**
	 * 已发放，默认为0
	 */
	private Integer hasSend = 0;
	
	/**
	 * 实际生成总券量， 默认券数量为0
	 */
	private Integer actualActCount = 0;
	
	/**
	 * 促销中心券总量
	 */
	private Integer actCount;
	
	/**
	 * 启用状态  0:未启用  1:启用, 默认启用
	 */
	private String isUsed = "1";
	
	/**
	 * 券文件下载地址
	 */
	private String couponFileUrl;

	public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getActivityName() {
		return activityName;
	}

	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}

	public String getProActivityId() {
		return proActivityId;
	}

	public void setProActivityId(String proActivityId) {
		this.proActivityId = proActivityId;
	}

	public String getProActivityName() {
		return proActivityName;
	}

	public void setProActivityName(String proActivityName) {
		this.proActivityName = proActivityName;
	}

	public String getActivitySecretKey() {
        return activitySecretKey;
    }

    public void setActivitySecretKey(String activitySecretKey) {
        this.activitySecretKey = activitySecretKey;
    }

    public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getHasSend() {
		return hasSend;
	}

	public void setHasSend(Integer hasSend) {
		this.hasSend = hasSend;
	}

	public Integer getActualActCount() {
		return actualActCount;
	}

	public void setActualActCount(Integer actualActCount) {
		this.actualActCount = actualActCount;
	}

	public Integer getActCount() {
		return actCount;
	}

	public void setActCount(Integer actCount) {
		this.actCount = actCount;
	}

	public String getIsUsed() {
		return isUsed;
	}

	public void setIsUsed(String isUsed) {
		this.isUsed = isUsed;
	}
	
	public String getUpdator() {
		return updator;
	}

	public void setUpdator(String updator) {
		this.updator = updator;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getCouponFileUrl() {
        return couponFileUrl;
    }

    public void setCouponFileUrl(String couponFileUrl) {
        this.couponFileUrl = couponFileUrl;
    }

    public interface IsUsed {
	    String USED = "1";
	    String NO_USED = "0";
	}
	
	public interface Attributes {
        String PRO_ACTIVITY_ID = "proActivityId";
        String STARTTIME = "startTime";
        String ENDTIME = "endTime";
        String ACTIVITY_NAME = "activityName";
        String ACTUAL_ACT_COUNT = "actualActCount";
        String UPDATOR = "updator";
        String UPDATE_TIME = "updateTime";
        String IS_USED = "isUsed";
        String HAS_SEND = "hasSend";
        String COUPON_FILE_URL = "couponFileUrl";
    }
}
